try to get rid of invalid opcode