Fix more potential crash in ios 5.0