fixed memory leak :)