Fix bug in Fill method where the distance between each node was not correct