fixed caching bug, duplication bug and empty DOI bug