replace max with saturate

They are essentially the same in that case, but saturate is more
compact.