Configure immediately after item change to prevent some segfaults
Improve path approximation code a little