fix activity indicator bug