Fixed new/lost session issue