fixed memoryLeak