Fixed crash on iOS < 7