Well, splitting doesn't segfault, but it does seem to be double counting.