Correct a bug when empty matiere