search patent bug fixed