Fixed ALERT_ENABLED values
Fixed an error in the example code