attempting to fix another mem leak