fixed bug on select using keyboard