Fixing problem with floats and ints