mean shape computation fixed