Bugfixes in loading metric map data from mongo and saving it on the disk