fixed one bug for saving tets.