diff --git a/Nasal/fadec-common.nas b/Nasal/fadec-common.nas
index 01562c73..f5875d10 100644
--- a/Nasal/fadec-common.nas
+++ b/Nasal/fadec-common.nas
@@ -224,7 +224,7 @@ var thrust_loop = maketimer(0.04, func {
 	gs = getprop("/velocities/groundspeed-kt");
 	if (getprop("/FMGC/internal/flex-set") == 1 and getprop("/systems/fadec/n1mode1") == 0 and getprop("/systems/fadec/n1mode2") == 0 and getprop("/gear/gear[1]/wow") == 1 and getprop("/gear/gear[2]/wow") == 1 and gs < 40) {
 		setprop("/systems/thrust/lim-flex", 1);
-	} else if (getprop("/FMGC/internal/flex-set") == 0 and engstate1 != 3 and engstate2 != 3) {
+	} else if (getprop("/FMGC/internal/flex-set") == 0 or engstate1 != 3 or engstate2 != 3) {
 		setprop("/systems/thrust/lim-flex", 0);
 	}
 	if (getprop("/controls/engines/engine[0]/reverser") == "1" or getprop("/controls/engines/engine[1]/reverser") == "1") {
diff --git a/revision.txt b/revision.txt
index 81bbe608..dff7f069 100644
--- a/revision.txt
+++ b/revision.txt
@@ -1 +1 @@
-4780
\ No newline at end of file
+4781
\ No newline at end of file