Fix a crash of the RenderTask