Fixed an iteration condition in PreAllocSplitting. This should fix some miscompilatio...