VE-969 Fix incorrect value being compared