Fixed a startup crash on the client