Fixed a memory leak!