Fixed small bug in alarm code.