Fixed a little bug in the intersect method.