fixed potential leak