fixed bug in boundary module