Fixed Scala bug in malign.