fix (I think) to alerts