fixed bug in total amount