diff --git a/kotlin-spark-api/src/main/kotlin/org/jetbrains/kotlinx/spark/api/Conversions.kt b/kotlin-spark-api/src/main/kotlin/org/jetbrains/kotlinx/spark/api/Conversions.kt
index 9c570738..44da4147 100644
--- a/kotlin-spark-api/src/main/kotlin/org/jetbrains/kotlinx/spark/api/Conversions.kt
+++ b/kotlin-spark-api/src/main/kotlin/org/jetbrains/kotlinx/spark/api/Conversions.kt
@@ -134,7 +134,7 @@ fun Iterable.asScalaSeq(): ScalaImmutableSeq =
//#if scalaCompat >= 2.13
scala.jdk.javaapi.CollectionConverters.asScala(this).toSeq()
//#else
- //$scala.collection.JavaConverters.iterableAsScalaIterable(this).toSeq()
+ //$scala.collection.immutable.`Seq$`.`MODULE$`.apply(scala.collection.JavaConverters.iterableAsScalaIterable(this).toSeq()) as ScalaImmutableSeq
//#endif
//#if scalaCompat >= 2.13