Fixed overflow on iOS