fix now in base_document.py