Fixed uniqueNumber method