Fixes 'Objective name cannot be null' by changing first setting name and
THEN creating the objective