check diag with some bugs