Corrected alternative worlds generation bug (using previous distance matrix).