Fix a bug on the rewards.php page.