I am also looking for a solution for this. In my experience, sometimes all of the refs are deleted, not only the first one.