Fixed NullPointer Exception and made the generate search/filter/month report global.