I think I found the issue. The depth sorting got messed up somehow and since I am manually drawing the floors on a surface now it wasn't noticeable that the dirt floor was above the other floors.
ops I'm sorry for not responding about the bug, I was completely consented to a game that I ended up forgetting about the rest! but basically road, dirt, dark sand and rock floors, the bug doesn’t happen with 100% but normally when it happens in a certain place it’s always repeated, and I also wanted to take the opportunity to ask a question the npc’s option to sweep the floor was temporarily disabled ? sorry if this subject has already been said elsewhere and that i came back to this game a short time ago