fix imm bug 2