Fix intersection

Fixes #22