Fixed a bug with reputation counter