Fixed bug in report where only the last table was being shown