fixed #59 NPE while creating report