Fixed crash on session completion