Fix a bug that causes updates to the table to fail