Hopefully fixes shady behavior on iOS.