Fix relationModifier handling (incorrect value in check was used).