Fix undesirable flicker effect caused by the html template display.