fix edit selection