fix float parsing bug