fig a bug in setting coordinate in x direction for vertices