fixed cookie persistance issue