fix some categorical graphs