Try to fix memleak