Fixed bug with floating point values being cast to integers