fix unintended globals, thanks @AWinterman