fixed extra OR appearing on end of search