Fixed problems with excel report generation.