fixed the "reconnect leads to chaos"-bug