fix some mips bugs