fix "not connected" issue