fix to compile issue caused by scripted metric aggregation change