diff --git a/kotest-assertions/kotest-assertions-shared/src/commonMain/kotlin/io/kotest/assertions/show/Show.kt b/kotest-assertions/kotest-assertions-shared/src/commonMain/kotlin/io/kotest/assertions/show/Show.kt
index b062cd2734e..8bb962efc40 100644
--- a/kotest-assertions/kotest-assertions-shared/src/commonMain/kotlin/io/kotest/assertions/show/Show.kt
+++ b/kotest-assertions/kotest-assertions-shared/src/commonMain/kotlin/io/kotest/assertions/show/Show.kt
@@ -74,8 +74,8 @@ expect fun platformShow(a: A): Show?
@Suppress("UNCHECKED_CAST")
fun commonShowFor(t: T): Show {
// lookup a show from the registered typeclasses
- val show = Shows.all().keys.firstOrNull { it.isInstance(t) }
- if (show != null) return show as Show
+ val kclass = Shows.all().keys.firstOrNull { it.isInstance(t) }
+ if (kclass != null) Shows.all()[kclass] as Show
// this won't work in JS or native, so they'll get the boring old toString version
if (io.kotest.mpp.reflection.isDataClass(t::class)) return dataClassShow()
return DefaultShow