Tool/software:
Hello,
Something strange is happening in my circuit and I would like to know if anyone can see where the problem is.
My circuit is as follows:

At the input would go a sine wave centered at 0, is separated into a positive and a negative rectifier, where we filter them to have a DC signal, and finally the two sides are subtracted.
When the input sine wave has a frequency lower than 3 KHz, the operation is as it was planned, example of the operation in the following image.
We put a 958 Hz sine wave at the input and observe it with the yellow color, and the pink color at the node where components C11, C17, R10, R8 and D3 are connected:

But when we put high frequencies at the input, the capacitor is charged more than what is at the input, so there is a permanent offset.
Example of a 9.41 KHz sine wave looking at the same points.

Why does this offset occur in the capacitors and how can I stop it from appearing?



