fix crash on ios low than ios 6

fix crash bug low than ios 6