Fixed dependencies for Document