fix some bug, mips gen