ACT-2099: correct variable self compare