fix imm only 0 bug