Rule not logging correctly, missing ENDIF not working right

Not sure what you mean. Please show the rule in question.