Fix flashcard page count