fix alarm reference problem