Fix bug when updating previous session after starting new