fixed yet another memory leak!