fixup memory leak