Fix gantt click bug