fix use atof instead of atoi