Fix regression on iOS