fix for evaluation at last node

Fixes an index problem for evaluation at the last node.
why do you do the calculation again? You already know the node positions. What is the reason for the (not very well named) maps if you don't use them in the comparison?