fixed field uniqueness bug