Fixed error in prediction and removed debug prints