Restore and make it work on ios again