Fixed loading icon not disappearing