fixed the modal cookie creation