Fix for DocumentEvent don't get called.