diagram fix