fix some opcodes in secd