Fixed a bug where leaf nodes weren't being treated differently from interior nodes during redistribution.