fix Render Bug