Displacement on nanite landscape don't work evry time. ue5.5.4

Why the only way the displacement on my landscape works is only when i plug the height map texture directly to mat output and when I use in myterial Use Material Atributes the Displacement don’t work?

it only works when connected like this:

thx for all answers