Fixed dist error in computePath