fixed crash on iOS6