fix surveyaggregate rest api