corrected a bunch of view bugs in the report script