fix connector bug and add couter graph