fix flashcards controller