The Interaction Layer Mask not automatically updating based on the defined layers in the inspector in unity

the Interaction Layer Mask not automatically updating based on the defined layers in the inspector in unity, if i add a new layer to the inspector layer it doesn’t reflect in the interaction layer mask, in fact the interaction layer has a add new layer of its own, how do i fix it

i already solved the issue, I was using the old and new input system at once .