fix delete/insert