Fix dependency for Document