fix another memory leak