fixed crash on iOS < 7