Fix another bug in the snap to node feature, it now works much better