fix pb context.