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