Fix dependency at document.cpp