Fixed very rapid memory leak