Fixed a bug with the report system