fixed small memleak