fix: max value for sum operator