fix alarm reset