diff --git a/src/alarm_table.cpp b/src/alarm_table.cpp
index 90d73d98ce52fa88dccdb501f1cb82739c73aa21..d785afa317f75dec342388df609a4a4ad9ed94a8 100644
--- a/src/alarm_table.cpp
+++ b/src/alarm_table.cpp
@@ -568,7 +568,7 @@ bool alarm_table::timer_update()
 		// - from S_ALARM to S_NORMAL considering also off delay
 		//or
 		// - from shelved to not shelved
-		if(status_on_delay && (i->second.stat == S_NORMAL) || (status_off_delay && (i->second.stat == S_ALARM)) || (old_shelved && !i->second.shelved))
+		if((status_on_delay && (i->second.stat == S_NORMAL)) || (status_off_delay && (i->second.stat == S_ALARM)) || (old_shelved && !i->second.shelved))
 		{
 			ret_changed = true;