bugfix for last card removal