fixed grouping error in summation of missing potential demonstrations