another potential leak fix