Remove main from cookie