fixed bug in edit field