fix wrong search range logic and set initial search to slider value
Merge