When is genetic diversity lost?