Fix errors about convert string to integer.