Fixed undefined settings in alert.js