Fixed the fitness function.