modify the error of typing