Not segfaulting but intersection tests are wrong