Fixed "chargain" bug.