Fixed a bug where clients would not be able to move, and servers would crash after client disconnection