Fixed improper comparison of ints and floats.