fix footer format and blank credit to 0