fix reflection scala class bug