fixed one problem with reconnectin

Dennis requested to merge fix-connection-problems into master

Merge request reports