Render works, created a memory leak