fix loading bar switch loading method issue