Fix a bug on rewards.php page.