parser: fixed token chewing bug