fix the insure that not save correctly doi value