fixed the cookies issue