To the theory of coastal refraction in the case of waveguide propagation problem