fix the bug from iOS7 new api.