Fix client crash when switching servers(Objective)

Remove the objective before adding it.