bug fix in intersection with region