fixed int problem in charge_card