fix unique property on string fields