iOS Alert API fix