fix inifinite loading indicator