fix table on update