Fix to reset activity indicator