fixed parseInt instead of parseFloat error