fixed memleak probably