fix attribute name change and delete the old one