(C) Fixes genetic algorithm.