Fix a bug where the maps were being recreated when they shouldn't.