Rendering current frame issue