Memory leack fixed