remove incorrect attributes.