fixed #43 (crash associated with bond spanning distance 0)