fixes a bug when there are no currency fields to format.