fixed bug, Kotlin code now runs as expected