fix upserting new key