about the #191

here is a possible fix for the problem that happens when you try a reinsert twice the same file.