Objective function calculation is edited.

The identifier for averaging objective functions was mixing with the
population identifier. It is corrected.