fix some bugs in paper