remove duplicate from field and fix spec