fixed connection bug that appeared after other fixes
Merge branch 'develop' of https://github.com/golvmopp/BGSEP into develop