Core/MMAPs: Fixed mmap generation on mapids with more than 3 digits

Fixed mmap generation on mapids with more than 3 digits