Fixed bug where a selected card would not be deselected appropriately.