fixed issue with deleting flashcards