CHOP-63. Fix the max method which broke the build.