fixing issue with gemeration of reports