Fixed look and lookahead cok eok switch bug