Fix quick html rendering order issue