fixed _substitute method, when on id field