Fixed an issue with connecting to servers