Fixed memory Leak