iOS7 crash fix