fixes for a few opcodes