Fixed a bug in heatmap synchronization and render