AD8313 to be a detector,the vout's waveform is not stable

when detecting a frame of data ,the vout's waveform in Oscilloscope is shown below

we can see the waveform's amplitude is not stable ,the start of the frame and the end of the frame ,whose amptitude are diffirent ,please tell me the reason ,how to adjust the current.