generate diagram fix