fixes deleteCard and deleteAny