Fixed minor bug introduced in 969fd5934b63f2d98b84ebd19ea218f99e7c521e.
Merge pull request #1393 from cmfcmf/search-fix

Fixed minor search related bug