[2.2.8.156 C7] RM5 - No "End-IF" available

After reaching this state (almost entirely going top->bottom), I cannot "End-If" the previous "IF (Front Door Sensor-Ring Closed) THEN" statement.

Any ideas?

Something seems amiss with that--I was able to do an "Insert before" to put an End-If prior to the last End-If...that seemed to work around this issue.