Fix bug in shortest-path-direction featurizer