fix edit errors