fix typo and isFloat check func