try to fix mem leak