Hack to fix offset problems in some molecules
Use 3D distances rather than just 2D