Homeostasis in a selection experiment