Fix an ENDIF command was found outside of a proper IF ENDIF structure