Fixed a critical bug that connection loop is running incorrectly cause it crashes always