Fixed 'immediate alarm' bug