Fix infinite loop in page cache.