diff --git a/plugins/reporters/static-html/src/main/kotlin/ReportTableModelMapper.kt b/plugins/reporters/static-html/src/main/kotlin/ReportTableModelMapper.kt
index 19e3a24acffac..c8b40e8a93dce 100644
--- a/plugins/reporters/static-html/src/main/kotlin/ReportTableModelMapper.kt
+++ b/plugins/reporters/static-html/src/main/kotlin/ReportTableModelMapper.kt
@@ -80,7 +80,7 @@ internal object ReportTableModelMapper {
it.summary.issues
}
- val packageForId = ortResult.getPackage(id)?.metadata ?: ortResult.getProject(id)?.toPackage()
+ val packageForId = ortResult.getPackageOrProject(id)?.metadata
val row = DependencyRow(
id = id,