some memory leaks fix