Rule not logging correctly, missing ENDIF not working right

You aren't showing enough of the logs for me to answer this. I need to see the full sequence that took place to know what happened.