Created stable color changing on heatmap. #fixes 776 #fixes #777.