Fixed generation of Rectangle mesh.