Small memory leak fixed