fix the alert REST endpoint