minor mem leak fix