issue 5121, fix loading bar init flicker and refator percentage