fixed loading indicator bug