fixed little mem leak