Fix objective code edit

When editing an objective code, the sub-objectives codes are updated using the same prefix