Messed up the tag insertion for delete