Hello, I am learning to use gprMax to do a simulation of different layers of soils with different permittivity each. Til now I only wrote a few simple input files to create multi-layered homogeneous soils. Then I found that the B-scan images drawn from .out files(with direct wave removed) seemed to have interference from other waves(by the way I used mean value method to remove direct wave). Through several tests I think maybe it's because the PML of the left and right sides didn't absorb the radar waves completely. What am I supposed to do to avoid this situation, please? Is there anything that I should change or improve? And I will be more than grateful if you can tell me what place I did wrong ,please.
For example, this is one of my input files to create B-scan:
'''
#domain: 6 1 0.02
#dx_dy_dz: 0.02 0.02 0.02
#time_window: 3e-08
#waveform: ricker 1 100e6 my_ricker
#hertzian_dipole: z 0.3 0.7 0 my_ricker
#rx: 0.32 0.7 0
#src_steps: 0.02 0 0
#rx_steps: 0.02 0 0
#material: 16 5 1 0 normal_soil
#material: 10 10 1 0 wet_fertile
#material: 6 1 1 0 dry_fertile
#box: 0 0.5 0 6 0.7 0.02 normal_soil
#box: 0 0.3 0 6 0.5 0.02 wet_fertile
#box: 0 0 0 6 0.3 0.02 dry_fertile
'''
And this is the corresponding B-scan image(n=270):

B-scan image that removes the direct wave:

And I also tested file given by official tutorial, i.e "cylinder_Bscan_2D.in", but I removed the cylinder part . I posted the corresponding input file below:
'''
#domain: 0.240 0.210 0.002
#dx_dy_dz: 0.002 0.002 0.002
#time_window: 3e-9
#material: 6 0 1 0 half_space
#waveform: ricker 1 1.5e9 my_ricker
#hertzian_dipole: z 0.040 0.170 0 my_ricker
#rx: 0.080 0.170 0
#src_steps: 0.002 0 0
#rx_steps: 0.002 0 0
#box: 0 0 0 0.240 0.170 0.002 half_space
'''
And this is the result B-scan image with direct wave removed:

And I wonder if this will happen when echoes from adjacent layers aren't strong enough? Or put it another way: the permittivity difference of adjacent layers aren't large enough.