fixed an issue where connecting to a server on another machine would result in random characters being sent