Fixed some user and alarm bugs.