Fixed issue with creating irregular boundary