Comparison to Scala fixed

 #KT-5490 Fixed