add ios hack to prevend double changes