Fix input selection error
