small fix edit delete bug