fix create cookies