Fix the cookie generator.