Fixed Bug in rewards distribution