fixing generating reports