Correct bug for polygonal domain