Resolve dependencies in non-empty intersection - fixes #144