Fix isOpcode method.