fix IOS bug