Fixed bug in dotplot_diag