Fixed an error with agents not drawing correctly when at the end of path.