bugfix to reestablish the connection to webserver