Hotfix/crash on not connected

Fix severe crash.