Fixed an issue in the objective