handle the case when state does not exist for a session