fix bug and reward