Fixed FP comparison bug