Reset an expired event

Hi, im having trouble with a time event. When the event expires, i encounter a rule loop. This is the code:

import org.openremote.model.query.AssetQuery
import org.openremote.manager.rules.RulesBuilder
import org.openremote.model.asset.*
import org.openremote.model.attribute.*
import org.openremote.model.value.*
import org.openremote.model.rules.*
import java.util.logging.*

Logger LOG = binding.LOG
RulesBuilder rules = binding.rules
Assets assets = binding.assets

rules.add()
        .name("Estado Parq")
        .when(
            {facts ->
                return facts.matchAssetEvent(
                    new AssetQuery()
                        .ids("4Vscn06hs73Hm7IaZ3rMNW")
                        .attributeName("estadoParq")
                    ).count() == 0
        })
        .then(
            {facts ->
            assets.dispatch(new AttributeEvent("4Vscn06hs73Hm7IaZ3rMNW", "estadoParq", "Desconectado"))
        })

Thanks!