CANCELLATION OF ULTRAVIOLET DIVERGENCES FOR LOCALLY FLAT METRICS