fix card deleting