Fixed minor issue in search library.