Fixed error in RMSE calculation