fixed small errors when retrieving a report