fix autoAcceptAlerts undefined issue (cc @dandoveralba)