fixed cookies problem