Fixed opt.obj and mismatched args lengths