fix search to not show duplicate positions