fix bug when retrieve recordtype fields