Variable cleanup in render()