Fixed small bug in aggregate questionnaire endpoint