fixed a problem with rounding floats