bug fixes in the path cache, from altera testing