Fixed crash on startup if we a session leader