Caught bug in scanner implementation.