Bugfix open connection