Bugfix to lookAhead.
Bugfix to lookAhead.