Fixed open-document
Re-added make-active document hook
Fixed bad method reference