ios 4 & 5 crash bug fix