Fixed a bug with crossover.