Fixed issue with indefinite path throwing exception.