ensure the attributes is removed