fix for depth kwarg error.