fixed memleak
fixed memleak