Fixed bug that occurs on second cookie call when no cookies were awarded
the first attempt