Fix errors in unique