Fixed small memory leak