Scala didn't like this