fixes node numbering for 2dmesh