fixed code_cutlast if there's only one opcode