fixed bug in caching repo