fixed bug in storing newly added fields