fixed error in objective function type