fixed bug in accuracy prediction when no prediction is generated