Bug fix when connectivity changed.