Fix parseFloat to return valid numbers