Correct parseInt to parseFloat