[Bug 611641] Changing "Document" to "Doc" variable