Fix iOS7 support