(bug) Cloned session before setting.