fix valid_attributes