UE5 Refraction Problem

Hello,
I am trying to setup my water materiall and got this artifact.
The refraction works all over the mesh apart from the outline. The outline stays the same shape and the parts that would be changed are filled in completely white.I think its cousing by Depth shader and I can’t figure out why.





Solved problem by setting translucency pass