fix bug in update session