Fixed float conversion error