Fixed a bug that loading icon does not disappear