fix a bug for return type of atoin