Alarm code bug fix.