Fixed detection bug

Fixed bug where detection where the other space components where not
considered in the intersection.