fixed nonunique check