fixed bug when cal prediciton scores