Fixed some silly bugs involving the failure model and IsDisasterNode function