changes an incorrect float index to int