Spinner was not hiding properly on ios