Fix problem with activity indicator not showing.