Fix async saving data on iOS