Fixed anding/or-ing on local data matches