Fix error when syntax error message didn't show