Fixed some memory leak issues