fix nagative value maximum aggregators always return zero

Signed-off-by: pstan <tanpinsiang@gmail.com>
Merge branch 'tanpinsiang-maxagg' into develop