fixed an floating point index attempt to integer (d'oh)