bug in diag