fixed bug in fk field generation