fix edit fields