Fix a bug and limit 1 select when select first