Fixed memory leak;