wrong paths used

you calculated a new paths but used the old parent.paths