Kotlin : Negative content length