Solved a trivial error in handling map names