Fixed bugs for updating visualization data.