fix search when space in search terms