Small fixes for revision caching