fix cem distance measures
Merge remote-tracking branch 'origin/master'