Java to Kotlin converter: fixed two similar bugs