Removed unnecessary comparison
Fixed search issues