bugfix for alarm not working in PM