Fix the strange err when searching