Fixes in the cookie master script, found while translating.