The glitch on the DEM boundaries with different width comes from terrain correction step (seen on pictures on initial post).