Fixed Error With Alerts

Changed the For every look to a boundried loop.