Fix a bug introduced in commit 84eaed329352.
Fix an index error that happened sometimes when removing an exam.
Set top border in the status bar.