fixed crossover bug