modify by yizhq — fix ios7 only