fix some bugs in reputation system