fix typo in select_instance