Fixed a small memory leak