Fix bugs related to report and gantt chart