Fix heatmap code in not-dist