Fix a bug in DocRenderCache