Fixing multiple alert bug.