fixed mapobject constructor