Filter invalid ops in parser