fix minor bug in output:  sometimes there is nothing to spend