Depth of field is not working when i build the game (HDRP)

My depth of field is not working when i build the game but it’s working while playing in the unity editor. Also other effects are from the same Volume totaly fine in build. I tried to change priotry of Volume but it didn’t work too. Should i change somethings on player settings? I’m using 2021.1.7

And this is how i change my depth of field in code:

void focus_item()
    {
        DepthOfField depthOfField_;
        if(volume.profile.TryGet<DepthOfField>(out depthOfField_))
        {
            depthOfField_.focusMode.value = (DepthOfFieldMode)2;
        }
    }

Hi again, finally i found the problem. I was using two different depth of fields on my scene. I still don’t know why it doesn’t support 2 depth of field when i build but i will use only one and will change its properties. I’m developing this game more than one year so i forgot about other depth of field. It took a lot time to remember it haha.