Scala : Typo in method name