If allDiaryRecords is used immediately after removeDiaryRecord, it blocks the display update.
The diary record is removed internally but remains visible on the screen.
The player must manually switch to another subject before the display updates.
This issue does not occur if removeDiaryRecord runs after the allDiaryRecords command.