fixed bug with field adding