small fix for predictions code