fix some bugs in discuss