Initiate crash

Fixed a bug where connecting to a server would result in a crash.