Fix linked/unlinked states.