fix var leak caused by a refactor