better fix for IOS