Fix handling fragment and opcode.