Fixed bug where table was not updated when data is changed.