Capture alert variable properly

I think this should do what we want for fixing the alert response message.