Update the keys when the data goes to null