Removed a random cast to float. It would cast integers to floats.