Fixed loading indicator bug