bugfix: orHaving does not work when used as first having condition.