fixed a bug that caused a crash when trying to load regions from .mim files.