fix selectItem bugs