fix problem: when there are no bugs, the old xml is not deleted