Fixed an issue with the star skipping backwards when switching from calculating the path to tracing the path.