fix #80, removed redundant callback function on document