AND feature not working with Segments on Mautic 4 Docker

If anyone can help with this, would be highly appreciated… I spent a lot of times researching the forums and could not find the right answer so I am sure it will benefit others on here too…

Your software
My Mautic version is: 4.4.9
My PHP version is: 7.4.33
My Database type and version is:8.4.2 pdo_mysql
Docker Environment (EasyPanel install)

Your problem
For some reason the AND operator is not working when building segments. For example, I will say I want the tag filter as “candidate” and Visited X Url filter as “cal.com/xyz

PS: Segments build perfect with only one filter. Glitch happens when I used the AND.

Error: Anyone that clicked on “cal.com/xyz” from other emails will be added to this segment. This segment is not respecting the Tag filter as well which would mean
A) there is an error with the AND operator – or it might mean
B) There is an error where the “Visited X Url” or “tag” is glitching up. I am pretty sure it is the “Visited X Url” based on my analysis of other segments… But maybe this is more systemic for the AND feature in Segments … For example, I noticed that my Candiate Segment and my CEO segment (obviously a recruitment client) – both people will show themselves as candidate and CEO - for the ones that clicked on cal.com/xyz – it is not respecting their tag filters as I try to separate them for campaigns…

These errors are showing in the log: none

Steps I have tried to fix the problem: cleared cache, restarted container and server, updated schema, ran all cron jobs via ssh (segment update, campaign update and trigger, and let it run on its own, ran maintenance cron… )

Hello everyone… Very strange. So I checked my imports and campaigns to make sure that based on my uploaded my data, the regular segmentation process did not add the wrong segments, everything checked out and I meticulously checked them. Here is the weird part, I deleted the segments, cleared cache, rebuilt the segments, and then they worked perfect. I think there might have been a glitch while it was uploading, it is a hard one to find because I found no error logs and honestly, I do not have time to look through every single log to find out as I hear Mautic 5.1.1 is amazing and I will be upgrading to that soon anyways…