fix delete feature