Fixed a bug which caused the program to crash when a new report was being added