Replace the attribute in comparing its exprId other than itself