fix objective computation