fixing scope update.