I figured mine out. It's a very specific bug and probably unrelated to yours, but after several hours of troubleshooting, I've found that order of Conditions matters alot - it have wierdness when it comes to doing clauses with expands with conditions.

I'm not even sure if you can call it a bug - any program capable of dealing with this sort of issue would be close to human.