Coordinate Invariance of the Residue