Fix giant memory leack