Various fixes to LOD caching.