Fixed small bug when reading the rewards from file