fix alarm issue