Fix chart error for categories