cluster plot bug

I forgot to change all distance functions. It should work now.