Fixed end of input error.