Bug fixes on data update. Now redraws data correctly when update() method
is called.