fix some memory leaks problems