Problem with SkyAtmosphere render

Hi everyone!
Maybe someone can help me?
I have a problem with SkyAtmosphere.
In the viewport everything is fine, but when i render a part of the fog does not appear.
I messed with all the parameters and I couldn’t solve it, does anyone know why this happens?