report and trend chart fixes