Fix an issue when the key does not exist