Fixed the rendering failure during UIresizing