fixed some errors - next, score error when not inf