Change location of floating point rounding to fix ridiculous issue