fixed cookies issue