fixed simplesearch bug