fix issues on ios7