fix field assignment