Deterministic simulation high frequency response at end of shock

Hi everybody. I am doing some deterministic simulations and when the shock ends, high frequency responses are given for some variables. I want to ask if there is any possible way to get a smoother response without smoothing out the shock? I have posted an example below (the shock ends at period 32).


The shock code:
image

Thank you in advance.

should be relevant.