fix bug with update for portals