fix bug in PCH algorihtm when its calculates the communication costs