Fix the error in the color callback for gantt chart