Fixed loading dialog dismissed on rotation