Fix alarm creation from REST