*: Fix a bug that caused crashing when deleting a card