fixed a potential leak