Fixed syntax, and rare bug with the order of processing opcodes