matching refraction with scene depth

my refraction and scene depth are not lining up with each other like shown below.

here is what i currently got in the opacity output

if anyone knows how to fix this it would help out a ton