Fixed a few stuffs.

Changed default status on view summaryreport also changed the icon when
you choose a summary report.

checks is f is not null first so that an error won't occur.