I think we need a key.object = 0 here, to match the one in the else branch.