fix unintended global