fix error in inf norm