fix add_session problem