bug fix for alert button action