Fixed HUGE memory leak