fix bug with unexpected tkInvalid,tkEof,tkComment