fix loading visibility issue