Fixed export diagram.