Fixed float error properly