Fog glitch while rendering with ultra dynamic sky

I selected the ultra dynamic sky component, then I selected Sky atmosphere and I changed the location to Z:-25000