add unless clause to group.average on admin page