heatmap: handle windows errors