fix missing var

pretty sure this is not supposed to be global