Fixed crash in client when session starts.