Bugfix for directory cache.