Fixed a minor memory leak