fixed bug with selecting io