Fix transitions on iOS.