Corrected bug in dynamic region identification.