bug fixed in select.rs