Fix up unique numbers detection