Fixed a totally retarded memory leak