fixed activity indicator bug