fix scala version dependent dependency