Fixed add session problem

It had disappeared during the branch merge