minor fixes related to search