fix conditional in alert.rb (==)