fix intersection bug

- fixes #131