fix document edit events not firing