fix display of activity indicator