bug fix in CheckNetwork functions