Fixed ActiveDocument property.
Merge pull request #219 from nabeshin/hotfix/active_document

Fixed ActiveDocument property.