fixed bug dressed up as a memory leak