fix edit in a modal