fixed issue on ios8