Bugfix: correctly compute geometric mean