Fixed a few bugs with the path walking methods