Fixed bug where floats were treated as integers