fix scala