fixed small bug that duplicated results at first search
compiled