fix segfault in approach translate

Not sure why we're iterating through the points and not just taking the last one, but we certainly can't iterate through joint names and then use the index with points.