fix scala check