fixed edit goal and add objective.