memory leak when preloadEffect