fix globals