Fixed bug in DynamicRegion extension