bug fix on ios8