Fix bug leading to map get unsaved status after loading