support the case that a register already matches with the previous