Fix a bug in tessellation.