Bugfix in DirectoryHandler.