fix delete-btn shown when editing snippet