input selection fix