bug fixed in select