fix heatmap offset problem #5734