15: fixed bug with memory leak