fixed mapid bug