Fixed bug of loadingbar