Upgrade mapentity