Fixed a bug where physical distances (dist2) weren't being updated properly.

Signed-off-by: Ted Steiner <tsteiner2@gmail.com>