fixed the crazy multiplying cookies