fix edit permission