fix bugs: input maxlength & input type (float)