Fixed potential crash when switching profiles on iPhone 6.