fix reopen session