Fix for occasional issue when selecting via input box.