fix bugs when copy traffic matrix