Pin mapentity to before perms