patch #532: fix double header when no result. enhance the patch to include project search