fixing card removal race condition