fix join crash(might be), search feature untested.