Preserve attributes on select_variables