correct barycentre computation