Fixing data storage iOS