Fix gantt transition bug.