temp fixed mem leak