Fix bug with uncached rendering.