fix get depth bug