fix bug in checkIsOrigin method in SearchEngine