Fixing the golden cookie hack