Fixing bug in limit_len on multiple-root trees