Fix MIPS target

This version fixes a bug that causes MIPS target to emit illegal instructions