fix bug on ios7