try to fix globals