Fix unique validate finding IDs of different type