fix total amount printout misedit