fix bug in findPath so that it includes the specified start element