Fix method of determining region intersection

Applies to #58