Cloning heatmap causes exception. Fix #7