Update region manager length when regions are removed

Currently only updates the length attribute when regions are added.