fix bug with opcode order.