rename variant name, avoid memory leak when attribute not found.