I'm trying to use a predicate to determine horizontal distance, but it doesn't seem to work

I'm trying to mark chunks with a single marker entity and use a predicate to tell if some command was ran outside the chunk, to keep things short everything works except the predicate. If I'm close to being level with the entity it works fine but if I go drastically lower it doesn't seem to work despite it stating that the test ignores the Y value. Is this a bug or am I missing something? I wouldn1t be surprised by either.

Here is the relevant command: execute as @p at @s if score @s posZ matches 0 if score @s posX matches 0 if dimension biosphere:biosphere_dim as @e[type=minecraft:marker,limit=1,sort=nearest] if predicate biosphere:16_blocks_away as @p run function biosphere:utils/cloneprocess And the predicate: { "condition": "minecraft:entity_properties", "entity": "this", "predicate": { "stepping_on": {}, "distance": { "horizontal": { "min": 15, "max": 31 } } } }

Continue to help post