Fixed a bug in change_stats.