Fixed a bug preventing alerts from being dismissed on some devices