Just adjust the sinusoid voltage 0.8 Volts more tham sqare and give circuit a little time to reach the dc level . :-) :D
Like it or not ???
In this example it will reach upto 10 V
It is also an example of impuse integration to give continuos signal of constant amplitude.