fix match code for exclude