fixed set_session