Fixed the bug which caused the program to crash when attempting to show all reports