fixed comparison of floats