Correct wrong parseInt into parseFloat