fix very unlikely memleak