fixes for optimized heatmap renderer