fix bug in get chart colors