fix alert on ios 8