Fixed an issue when hosting a server.