heatmap: don't add frequencies that don't exist