fix search input based on Jo's changes from d3684d5fd4977c446e8fd29862c4904426956b4d