fixed bug with unique text field