fix macromanager's crash bug