bug with re-assigned global cookie