Fix a small bug resulting in double-hashlinks on clones.