Fixed a nasty memory leak