Fixed the report functionality.