Fixed a bug that caused errors after a fresh install on iOS