fixed seg fault  select3