fix an error for 1-d clement matrix