bug: CSM distance