fixing edit field