fix minor memleak