fixes bug in getAngleShortestPath