Make the key valid when assigning