fix some bugs.(after document be rejected)